#ifndef _WDS_PICKUP_MANAGER_H_
#define _WDS_PICKUP_MANAGER_H_


#include "wds_pickup.h"
class WDSPickupCollection;
class WDSPlayer;


class WDSPickupManager
{

public:
	
	static WDSPickupManager&			Instance();
	


	void								Render(const math::Vec2& Offset,float Scale);
	void								RenderDebug(const math::Vec2& Offset,float Scale);
	void								RenderShadow(const math::Vec2& Offset,float Scale);
	void								Tick(float dt);
	WDSPickup::PICKUP_TYPES				HitTest(const math::Vec2& P, float Radius,  float Scale);



	void								Clear();
	void								Spawn(const std::string&, 
											const math::Vec2& Pos
										);
	void								Spawn(WDSPickup::PICKUP_TYPES Type, 
											const math::Vec2& Pos
										);

	void								SpawnChance(const math::Vec2& Pos);

    	
protected:

	bool								IsGunPickupActive() const;

	
	WDSPlayer*								m_pPlayer;
	WDSPickupManager();
	
	std::vector<WDSPickupCollection*>		m_PickupCollections;

};

#endif